﻿using AntMovement.Core.Entity;
using AntMovement.Core.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntMovement.Core
{
    public interface IMotionBase
    {
        /// <summary>
        /// 控制器索引
        /// </summary>
        int Index { get; }
        /// <summary>
        /// 控制器名称
        /// </summary>
        string Name { get; }
        /// <summary>
        /// 打开链接
        /// </summary>
        /// <returns>ok 成功</returns>
        string Open();
        /// <summary>
        /// 关闭链接
        /// </summary>
        /// <returns>ok 成功</returns>
        string Close();
        /// <summary>
        /// 获取状态
        /// </summary>
        /// <returns></returns>
        long GetStatus();

    }
}
